var mongoose = require('./db')

var Schema = mongoose.Schema

//标签表
var testSchema = new Schema({
    name:String,
    sjname: String,
    question:Array,
    tscore:{
        type:Number,
        default:0
    },
    createtime:{
        type:Date,
        default:Date.now
    },
});

//创建model,第三个参数是实际表名
var testmodel = mongoose.model("test", testSchema,"test");

module.exports = testmodel